<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Attachment extends Model
{
    protected $table = 'attachment';

    //图片名称
    var $uploadPicName = 'pic';
    //图片上传最大大小/kb
    var $picMaxSize = 2048;
    //文件名
    var $uploadFileName = 'file';
    //文件上传最大大小/kb
    var $fileMaxSize  = 5120;
    
    //图片质量
    var $percent = 20;
    //上传根目录名称
    var $rootName = '/upload/';

    function uploadPic($request){
    	$file = $request->file('pic');
    }
}
